package com.siyuan.blog.dao.system;

import com.siyuan.blog.common.base.SuperMapper;
import com.siyuan.blog.domain.system.Resources;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResourcesMapper extends SuperMapper<Resources> {
    List<String> findCodeListByRole(Integer roleId);

    List<Resources> findListByRole(@Param("roleId") Integer roleId, @Param("type") int type);

    List<Resources> findListByRoleAndTopNav(@Param("roleId") Integer roleId, @Param("type") int type, @Param("topNav") int topNav);

    List<Resources> findAllListByRole(@Param("roleId") Integer roleId);
}
